home *** CD-ROM | disk | FTP | other *** search
/ Developer CD Series 1996 October: Mac OS SDK / Dev.CD Oct 96 SDK / Dev.CD Oct 96 SDK2.toast / Development Kits (Disc 2) / OpenDoc Development Framework / ODFDev / CWBuildExtras next >
Encoding:
Text File  |  1996-08-16  |  1.0 KB  |  37 lines  |  [TEXT/MPS ]

  1. #
  2. # CWBuildExtras [NoExamples]
  3. #
  4. # Builds all SOM files. This is meant to be used for CodeWarrior IDE builds only.
  5. # Since the SOM files are stored in the sources folder, we can just specify PPC Debug
  6. # and they'll get built for everything.
  7.  
  8. if {ODF} == ""
  9.     Beep
  10.     Beep
  11.     Echo "### You have not installed the 'UserStartup•ODF' file (or 'UserStartupTS•ODF' for ToolServer)." 
  12.     Echo "### Please do so before continuing. Those files are located in the 'MPW-ToolServer Additions'" 
  13.     Echo "### folder inside the ODFDev folder. Don't forget to relaunch MPW (or ToolServer)." 
  14.     exit
  15. end
  16.  
  17. Set Examples 1
  18.  
  19. For item in {"Parameters"}
  20.     if {item} == NoExamples
  21.         Set Examples 0
  22.     else 
  23.         Echo "CWBuildSOM [NoExamples]"
  24.         exit
  25.     end
  26. End
  27.  
  28. "{ODF}SLPPCDebug:BuildExtras" MetroWerks SOM
  29. "{ODF}CWPPCDebug:BuildExtras" MetroWerks SOM
  30.  
  31. if {Examples} == 1
  32.     For example In Bitmap Button Clock Container Draw Embed Form Hello Nothing Table
  33.         Directory "{ODFDev}{example}:CWPPCDebug:"
  34.         FWBuild -Metrowerks "{ODFDev}{example}:Sources:ODF{example}.SOM"
  35.     End
  36. End
  37.